<%call = remote_function(:update => "friend_icon",
                         :url => { :action => "icon_for_friend", :id => @friend.id })%>
<div id="imgup">
 <div id="friend_icon"><%=friend_icon(@friend)%></div>
 <%= form_tag_with_upload_progress({:action => 'upload'}, { :begin => "new Effect.Appear('status')", :finish => "$('uploadmessage').innerHTML = arguments[0]; #{call};" }) %>
   <%=hidden_field 'friend', 'id'%>
   <p style="padding-top:15px;padding-left:10px;">
     <%= file_field 'face', 'uploaded_data', :size => 12 %>&nbsp;
     <%= submit_tag _('Upload')%>
   </p>
 </form>

 <div id='status' style="display: none" class="notice"><%= upload_status_tag %></div>
 <div id="uploadmessage" class="notice"><%= @message %></div>
</div>